home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / system / mail / transpor / ifmail23.z / ifmail23 / ifmail / ifcico / modemstr.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-28  |  409 b   |  30 lines

  1. #include <stdio.h>
  2. #include "config.h"
  3. #include "nodelist.h"
  4.  
  5. static modem_string *tmp=NULL;
  6.  
  7. char *get_modem_string(ms,nlent)
  8. modem_string *ms;
  9. node *nlent;
  10. {
  11.     while (ms && ((ms->expr) && !flagexp(ms->expr,nlent))) 
  12.         ms=ms->next;
  13.     if (ms)
  14.     {
  15.         tmp=ms->next;
  16.         return ms->line;
  17.     }
  18.     else
  19.     {
  20.         tmp=NULL;
  21.         return NULL;
  22.     }
  23. }
  24.  
  25. char *next_modem_string(nlent)
  26. node *nlent;
  27. {
  28.     return get_modem_string(tmp,nlent);
  29. }
  30.